package work4;

import Uti.ScannerUti;

import work4.work2.Work2;
import work4.work1.CopyTxt;
import work4.work3.QWeather;

public class Works4 {
    public static void Work() {
        while (true) {
            System.out.println("请选择题目序号：1——题目1： 2——题目2： 3——题目3： 0——退出");
            int kk = ScannerUti.getInt();
            if (kk == 1) doWork1();
            else if (kk == 2) doWork2();
            else if (kk == 3) doWork3();
            else if (kk == 0) break;
        }
    }

    public static void doWork1() {
        new CopyTxt();
    }

    public static void doWork2() {
        new Work2();
    }

    public static void doWork3() {
        new QWeather();
    }


}
